package com.atmc.service;

import com.atmc.entity.Article;
import com.atmc.entity.ResponseResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
@Service
public interface ArticleService {
//    Long selectOneById(@Param("userName") String userName);
    List<Article> selectAll();
    List<String> queryById(Long articleId);
    ResponseResult getArticleAll();
    int insertArticleOne(Article article);
    int updateOneLikerCre(@Param("id") Long articleId);
    int updateOneLikerDes(@Param("id") Long articleId);
    ResponseResult publishPost(@RequestParam("context") String context, @RequestParam("userName")String userName, @RequestParam(required = false ,value="artPhoto") List<MultipartFile> artPhoto);
    ResponseResult commentPost(@RequestBody Article article);
//    ResponseResult requestLiker(@RequestParam("id)") Long id,@RequestParam("status")Long status);
    List<Article> selectByUserName(@Param("userName") String userName);
    public ResponseResult myLikerArticle(List<Long> likers);
}
